package cn.yunhe.biz;
import cn.yunhe.bean.Area;
import cn.yunhe.dao.AreaMapper;
import cn.yunhe.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;
public class AreaService {
    private static SqlSession session = SqlSessionFactoryUtil.getSqlSession();
    private static AreaMapper areaMapper = session.getMapper(AreaMapper.class);

    /**
     * 得到所有的景点区域，供后台添加景点时使用
     * @return
     */
    public static List<Area> getAllArea(){
        return areaMapper.getAllArea();
    }
}
